// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-7-5

#ifndef __LABEL_H_COMMON_UI__
#define __LABEL_H_COMMON_UI__

#pragma once

#include "ctrl.h"

//##ModelId=44CF17B80040
class CJoyLabel :
    public CJoyCtrl
{
protected:
	//##ModelId=44CF17B80050
    CStringW m_text;
	//##ModelId=44CF17B80055
    StringTrimming m_trimming;
	//##ModelId=44CF17B8005E
    StringFormatFlags   m_formatFlags;
	//##ModelId=44CF17B80063
    StringAlignment m_textAlign;

	//##ModelId=44CF17B80067
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
	//##ModelId=44CF17B8006D
    virtual void CM_Draw(Graphics& graph);
public:
	//##ModelId=44CF17B80070
    CJoyLabel(void);
	//##ModelId=44CF17B80072
    virtual ~CJoyLabel(void);
	

	//##ModelId=44CF17B80075
    void SetText(PCSTR text);
	//##ModelId=44CF17B8007D
    const CStringW& GetText() const
    {
        return m_text;
    }

	//##ModelId=44CF17B8007F
    void SetTextAlign(StringAlignment textAlign);
	//##ModelId=44CF17B80081
	void SetTextFormat(StringFormatFlags FormatFlag);
};

#endif  // __LABEL_H_COMMON_UI__
